//
//  MiddleCell.m
//  TianXiaNews
//
//  Created by lanou3g on 16/3/9.
//  Copyright © 2016年 wanshuai. All rights reserved.
//

#import "MiddleCell.h"

@implementation MiddleCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self initLayout];
    }
    return self;
}

-(void)initLayout
{
    self.btn =[[UIButton alloc]initWithFrame:CGRectMake(10, 20, [UIScreen mainScreen].bounds.size.width-20, 210)];
    
    self.btnimage=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width-20, 210)];
    [self.btn addSubview:self.btnimage];
    [self.contentView addSubview:self.btn];
    
    self.myImageView=[[UIImageView alloc]initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width/2-30,90,40,40)];
    self.myImageView.image=[UIImage imageNamed:@""];
    [self.btnimage addSubview:self.myImageView];
    self.Labeltitle=[[UILabel alloc]initWithFrame:CGRectMake(10,235, [UIScreen mainScreen].bounds.size.width, 20)];
    [self.Labeltitle setFont:[UIFont systemFontOfSize:14]];
    [self.contentView addSubview:self.Labeltitle];
    
    
    self.playcountLabel=[[UILabel alloc]initWithFrame:CGRectMake(10, 255, 250, 15)];
    [self.playcountLabel setFont:[UIFont systemFontOfSize:10]];
    [self.contentView addSubview:self.playcountLabel];
    
    
    self.playcountImage=[[UIImageView alloc]initWithFrame:CGRectMake(10, 255, 15, 15)];
    self.playcountImage.image=[UIImage imageNamed:@""];
    [self.contentView addSubview:self.playcountImage];
    
    
    self.playtimeLabel=[[UILabel alloc]initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-150, 255, 150, 15)];
    [self.playtimeLabel setFont:[UIFont systemFontOfSize:10]];
    [self.contentView addSubview:self.playtimeLabel];
    self.playtimeImage=[[UIImageView alloc]initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width-150, 255, 15, 15)];
    self.playtimeImage.image=[UIImage imageNamed:@""];
    [self.contentView addSubview:self.playtimeImage];
}

@end
